package jjn.acwing.java_basic;

import java.util.Scanner;

/**
 * @author Jjn
 * @since 2023/9/3 21:50
 */
public class Acwing741 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int[] fib = new int[61];
        fib[0] = 0;
        fib[1] = 1;
        for (int i = 2; i <= 60; i++) {
            fib[i] = fib[i - 1] + fib[i - 2];
        }
        while (scanner.hasNext()) {
            int i = scanner.nextInt();
            System.out.printf("Fib(%d) = %d\n", i, fib[i]);
        }
    }
}
